/**
 * 
 */
package Media.ui.widgets.DeviceView;


import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;


import org.eclipse.swt.widgets.ProgressBar;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;

import agg.UIUtils;

import Media.ui.UIExtendable;
import Media.ui.UIInterface;

/**
 * @author Hardeep
 *
 */
public class ProgressBarSavingData extends UIExtendable {
	public ProgressBar progressBar = null;
	
	public ProgressBarSavingData() {
		createShell();
	}

	/**
	 * This method initializes shell
	 */
	public void createShell() {
		shell = new Shell();
		shell.setText("Saving and optimizing data...");
		shell.setSize(new Point(300, 69));
		shell.setLayout(new GridLayout());
		
		GridData dataPbar = UIUtils.createGridData(true, true, SWT.FILL, 
				SWT.FILL, -1, -1, -1, -1, -1, -1, -1, -1);
		
		progressBar = new ProgressBar(getShell(), SWT.NONE);
		progressBar.setLayoutData(dataPbar);
	}

}
